<?php
    require_once('../code/global.php');
    require_once('/code/Admin.php');
    $admin=new Admin();
    $admin->loginCheck(1);
    $user=$admin->getUserInfo($admin->username);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>PhotoFromThe1st 后台管理系统</title>
        <link rel="stylesheet" href="/styles/admin.css" type="text/css" media="all">
        <script type="text/javascript" src="/script/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="/script/script.js"></script>
    </head>
    <body>
        <?php
            if(isset($_GET['msg']))
                echo '<div class="msgBox">'.$_GET['msg'].'</div>'
        ?>
        <div id="infoBox">
            用 户 名： <?php echo $user['username']?><br /><br />
            上次登录： <?php echo $user['last_login']?><br /><br />
            登录次数： <?php echo $user['login_count']?><br /><br />
            [<a href="editPwd.php">修改密码</a>]    
        </div>
    </body>
</html>